﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;

namespace Mindfor.Web.Data
{
	/// <summary>
	/// Provides functions to invoke code after database operation.
	/// </summary>
	public interface IPostCommit
	{
		/// <summary>
		/// Invoked after data item is inserted.
		/// </summary>
		void OnPostInsert(ISession data);

		/// <summary>
		/// Invoked after data item is updated.
		/// </summary>
		void OnPostUpdate(ISession data);

		/// <summary>
		/// Invoked after data item is deleted.
		/// </summary>
		void OnPostDelete(ISession data);
	}
}
